package system;

import system.CentralSystem;
import cards.Card;

public class Turnstile {
	
	private CentralSystem cSystem;
	
	public Turnstile() {
	}
	
	public Turnstile(CentralSystem cSystem) {
		this.cSystem = cSystem;
	}
	
	public boolean check(Card card) {
		boolean status = card.check();
		if (cSystem!=null) cSystem.sendStat(card.getType().name(), status);
		return status;
	}
}
